<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2-认识URL</title>
</head>

<body>
  <!-- 
    新闻数据地址：http://hmajax.itheima.net/api/news
   -->
  <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js">
  </script>

  <script>
    axios({
      url:'http://hmajax.itheima.net/api/news'
    }).then(result =>{
      console.log(result);
    })
  </script>
</body>
</html>